﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Employee_9Feb
{
    class Program
    {
        static void Main(string[] args)
        {
            Employee[] allWorkers = new Employee[4];
            allWorkers[0] = new Worker("Vova Putin", 25000.00);
            allWorkers[1] = new Worker("Dima Zelenskiy", 250000.00);
            allWorkers[2] = new HourlyWorker("@@@", 1.25, 450);
            allWorkers[3] = new HourlyWorker("Gamer", 5, 480);
            for (int i = 0; i < 4; i++)
            {
                allWorkers[i].CalculateSalary();
            }
        }
    }
}
